package com.ztgf.commodity.models.vo;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.ztgf.common.annotations.CustomerBigDecimalSerialize;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * author: chenyu.wang
 * date: 2020-07-17 16:47
 * Description: 用于商城店铺装修页商品VO
 */
@Data
public class CommodityDecorationVO implements Serializable {

    @ApiModelProperty(value = "商品id")
    private Long id;
    @ApiModelProperty(value = "商品名称")
    private String goodsName;
    @ApiModelProperty(value = "零售价")
    @JsonSerialize(using = CustomerBigDecimalSerialize.class)
    private BigDecimal price;
    @ApiModelProperty(value = "商品图片")
    private String logoUrl;
    @ApiModelProperty(value = "商品简介")
    private String description;
    @ApiModelProperty(value = "原价")
    @JsonSerialize(using = CustomerBigDecimalSerialize.class)
    private BigDecimal originalPrice;
    @ApiModelProperty(value = "分类id")
    private Long categoryId;
}
